package com.solin.blog.web.rocketMq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

/**
 * @author solin
 * @description TestConsumer
 * @since 2022/2/12 9:50
 */
@Component
@Slf4j
//@RocketMQMessageListener(topic = "${rocketmq.stockUp.topic}",consumerGroup = "${rocketmq.stockUp.groupId}")
public class TestConsumer  implements RocketMQListener<String> {
    @Override
    public void onMessage(String s) {
        log.info("message:{}",s);
    }
}
